package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshijingchangjianchaMapper;
import com.manage.project.biz.domain.BizQitasheshijingchangjiancha;
import com.manage.project.biz.service.IBizQitasheshijingchangjianchaService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshijingchangjianchaServiceImpl implements IBizQitasheshijingchangjianchaService
{
    @Autowired
    private BizQitasheshijingchangjianchaMapper bizQitasheshijingchangjianchaMapper;

    /**
     * 查询其他设施经常检查
     *
     * @param id 其他设施经常检查主键
     * @return 其他设施经常检查
     */
    @Override
    public BizQitasheshijingchangjiancha selectBizQitasheshijingchangjianchaById(Long id)
    {
        return bizQitasheshijingchangjianchaMapper.selectBizQitasheshijingchangjianchaById(id);
    }

    /**
     * 查询其他设施经常检查列表
     *
     * @param bizQitasheshijingchangjiancha 其他设施经常检查
     * @return 其他设施经常检查
     */
    @Override
    public List<BizQitasheshijingchangjiancha> selectBizQitasheshijingchangjianchaList(BizQitasheshijingchangjiancha bizQitasheshijingchangjiancha)
    {
        return bizQitasheshijingchangjianchaMapper.selectBizQitasheshijingchangjianchaList(bizQitasheshijingchangjiancha);
    }

    /**
     * 新增其他设施经常检查
     *
     * @param bizQitasheshijingchangjiancha 其他设施经常检查
     * @return 结果
     */
    @Override
    public int insertBizQitasheshijingchangjiancha(BizQitasheshijingchangjiancha bizQitasheshijingchangjiancha)
    {
        bizQitasheshijingchangjiancha.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshijingchangjianchaMapper.insertBizQitasheshijingchangjiancha(bizQitasheshijingchangjiancha);
    }

    /**
     * 修改其他设施经常检查
     *
     * @param bizQitasheshijingchangjiancha 其他设施经常检查
     * @return 结果
     */
    @Override
    public int updateBizQitasheshijingchangjiancha(BizQitasheshijingchangjiancha bizQitasheshijingchangjiancha)
    {
        bizQitasheshijingchangjiancha.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshijingchangjianchaMapper.updateBizQitasheshijingchangjiancha(bizQitasheshijingchangjiancha);
    }

    /**
     * 批量删除其他设施经常检查
     *
     * @param ids 需要删除的其他设施经常检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshijingchangjianchaByIds(Long[] ids)
    {
        return bizQitasheshijingchangjianchaMapper.deleteBizQitasheshijingchangjianchaByIds(ids);
    }

    /**
     * 删除其他设施经常检查信息
     *
     * @param id 其他设施经常检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshijingchangjianchaById(Long id)
    {
        return bizQitasheshijingchangjianchaMapper.deleteBizQitasheshijingchangjianchaById(id);
    }
}
